package com.sc.nft.admin.request;


import com.sc.nft.entity.req.AddAndUpdateCastExpendConfRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AddAndUpdateReforgeConfRequest {

    @ApiModelProperty(value = "铸造id")
    private Long id;

    @ApiModelProperty(value = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "排序")
    private Long sort;

    @ApiModelProperty(value = "回流比例")
    private BigDecimal refluxRatio;

    @ApiModelProperty(value = "免费重铸次数")
    private Integer reforgeFreeCount;

    @ApiModelProperty(value = "消耗配置")
    @NotNull(message = "消耗配置不能为空")
    private List<AddAndUpdateCastExpendConfRequest> expendList;

    @ApiModelProperty(value = "是否有重铸条件")
    @NotNull(message = "是否有重铸条件不能为空")
    private Boolean isReforgeCondition;

    @ApiModelProperty(value = "条件藏品id")
    private Long conditionCollectionId;

}
